/* 主页index.html的样式表 */

/* 顶部导航条的容器 */
.topbar-wrapper {
    /* 设置宽度全屏 */
    width: 100%;
    /* 设置高度和行高 */
    height: 40px;
    line-height: 40px;
    /* 设置背景颜色 */
    background-color: #333;
}

/* 设置超链接的颜色 */
.topbar a {
    font-size: 12px;
    color: #b0b0b0;
    display: block;
}

/* 设置超链接移入的效果 */
.topbar a:hover {
    color: #fff;
}

/* 设置中间分割线 */
.topbar .line {
    font-size: 12px;
    color: #424242;
    margin: 0 8px;
}

/* 设置左侧导航栏 */
.service,
.topbar li {
    float: left;
}

/* 设置右侧导航栏 */
.shop-cart,
.user-info {
    float: right;
}

.user-info {
    position: relative;
    z-index: 999;
}

.user-info li:nth-child(1) img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.v-popover {
    display: none;
    width: 278px;
    /* height: 380px; */
    background-color: white;
    position: absolute;
    top: 55px;
    right: -79px;
    z-index: -1;
    box-shadow: 0 0 30px rgb(0 0 0 / 10%);
    border-radius: 8px;
    border: 1px solid var(--line_regular);
}

.li-img:hover img {
    transform: translateY(40px) scale(2.2);
    transition: linear;
}

.li-img:hover .v-popover {
    display: block;
}

.popover-content {
    width: 200px;
    /* height: 300px; */
    margin-top: 60px;
    margin: 60px auto;

}

.popover-content a {
    color: #000;
    font-size: 18px;
}

.popover-content a:hover {
    color: #000;
}

.nickname-item {
    display: inline-block;
    text-align: center;
}

.links-item {
    margin-top: 10px;

}

.links-item a {
    font-size: 14px;
}

.links-item .single-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #61666d;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .3s;
}

.links-item .single-link-item .link-title {
    display: flex;
    align-items: center;
}

.links-item .single-link-item .link-icon {
    margin-right: 16px;
}

.split-line {
    margin: 10px 0;
    width: 100%;
    height: 1px;
    background: #e3e5e7;
}

/*无法解决:hover选择父元素的问题*/
/*鼠标放在头像上的css*/
/* .user-info li:nth-child(1) img:hover {
    transform: translateY(40px) scale(2.2);
    transition: linear;
}

.user-info li:nth-child(1):hover+.v-popover {
    transition: 2s linear;
    display: block;
}

.v-popover:hover {
    display: block;
}

.v-popover:hover~.user-info {
    float: left;
}

.v-popover:hover+.line {
    color: #FF6700;
} */

/*购物车*/
.shop-cart {
    margin-left: 26px;
}

/* 设置购物车的样式
.shop-cart a {
    width: 120px;
    background-color: #424242;
    text-align: center;
}

.shop-cart:hover a {
    background-color: #fff;
    color: #FF6700;
}

.shop-cart i {
    margin-right: 2px;
} */

.nav-wrapper li a {
    display: block;
    font-size: 16px;
    margin-right: 20px;
}

.nav-wrapper li a:hover {
    color: #FF6700;
}